local Lua__yingji = fk.CreateSkill {

  name = "Lua__yingji",

  tags = { Skill.Compulsory },

}

Fk:loadTranslationTable{
    ["Lua__yingji"] = "应激",
    [":Lua__yingji"] = "锁定技，你受到超过一点的伤害时，场上角色非锁定技本回合技能失效。",
}

Lua__yingji:addEffect(fk.DamageInflicted, {
    anim_type = "defensive",
    can_trigger = function(self, event, target, player, data)
        return target == player and player:hasSkill(Lua__yingji.name) and data.damage > 1
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        for _, p in ipairs(room:getOtherPlayers(player)) do
            room:addPlayerMark(p, MarkEnum.UncompulsoryInvalidity .. "-turn")
        end
    end,
})

return Lua__yingji